import request from '@/utils/request'

export function listdangerLevel(query) {
  return request({
    url: '/danger/dangerLevel/list',
    method: 'get',
    params: query
  })
}

export function createdangerLevel(data) {
  return request({
    url: '/danger/dangerLevel/create',
    method: 'post',
    data
  })
}

export function readdangerLevel(data) {
  return request({
    url: '/danger/dangerLevel/get/' + data.id,
    method: 'get'
  })
}

export function updatedangerLevel(data) {
  return request({
    url: '/danger/dangerLevel/update',
    method: 'post',
    data
  })
}

export function deletedangerLevel(data) {
  return request({
    url: '/danger/dangerLevel/delete/' + data.flevelno,
    method: 'delete'
  })
}
